#ifndef ESP_NOW_MANAGER_H
#define ESP_NOW_MANAGER_H

#include "esp_now.h"
#include "cJSON.h"
#include "DeviceDefine.h"

// 设备管理句柄类型声明 
typedef struct DeviceManagerClient DeviceManagerClient;

// 获取网络配置信息的回调
typedef void(recv_net_config_event_callback)(NetConfig netConfig);
// 设置 获取网络配置信息的回调
void DeviceManagerClient_set_recv_netConfig_callback(DeviceManagerClient *handle, recv_net_config_event_callback cb);

// 创建与销毁
DeviceManagerClient *manager_init();
void destroy(DeviceManagerClient *handle);

// 初始化 WiFi 和 ESP-NOW
void init_espnow(DeviceManagerClient *handle);

#endif // ESP_NOW_MANAGER_H
